package com.sisy.demo.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @Description: 用户注册VO
 * @author: xx
 * @date: 2020-06-05 16:13
 * @version: 0.0.1
 * @Copyright: 2020 www.jztdata.com Inc. All rights reserved.
 * 注意：本内容仅限于杭州金智塔科技有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
@Getter
@Setter
public class UserRegisterVO {
    @NotEmpty(message = "手机号不能为空")
    @Size(max = 20, message = "手机号格式不正确")
    private String phone;

    @NotEmpty(message = "称呼不能为空")
    @Size(max = 32, message = "称呼不能超过 32 个字符")
    private String nickName;

    @NotEmpty(message = "密码不能为空")
    private String pwd;

    @Max(value = 1, message = "性别参数错误")
    @Min(value = 0, message = "性别参数错误")
    private Integer gender;
}
